﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using System.IO;
using System.Text;


namespace NewGlobalBizAssist.Lib
{
    public class User
    {
        DataAccess _da = new DataAccess();


        public User()
        {

        }

        public DataRow LogIn(string username, string pass)
        {
            DataSet ds = _da.GetDataSet("user_LogIn", username, pass);
            if (ds != null)
            {
                if (ds.Tables[0].Rows.Count > 0)
                    return ds.Tables[0].Rows[0];
            }
            return null;
        }
    }
}